package com.usian.admin.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.usian.model.admin.dtos.SensitiveDto;
import com.usian.model.admin.pojos.AdSensitive;
import com.usian.model.common.dtos.ResponseResult;
import io.swagger.annotations.ApiOperation;

public interface AdSensitiveService extends IService<AdSensitive> {
    /**
     * 根据名称分页查询敏感词
     * @param dto
     * @return
     */
    @ApiOperation("敏感词分页列表查询")
    ResponseResult findPage(SensitiveDto dto);

    /**
     * 新增
     * @param adSensitive
     * @return
     */
    @ApiOperation("敏感词插入")
    ResponseResult insert(AdSensitive adSensitive);

    /**
     * 修改
     * @param adSensitive
     * @return
     */
    @ApiOperation("敏感词修改")
    ResponseResult update(AdSensitive adSensitive);

    /**
     * 删除敏感词
     * @param id
     * @return
     */
    @ApiOperation("敏感词删除")
    ResponseResult del(Integer id);
}
